package com.gxa.modules.io.entity;

import com.gxa.modules.io.annotation.ExcelColumn;
import com.gxa.modules.io.utils.ExcelUtils;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletResponse;
import java.io.Serializable;

@Data
public class companyInfo implements Serializable {

    @ExcelColumn(value = "公司名", col = 1)
    private String companyName;

    @Override
    public String toString() {
        return "UserModel{" +
                "companyName='" + companyName + '\'' +
                '}';
    }

//    /**
//     * 导出操作
//     *
//     * @return
//     */
//    @RequestMapping(value = "/exportExcel", method = RequestMethod.POST)
//    public void importExcel(HttpServletResponse response, @RequestBody List<ErrorCompanyInfo> errorCompanyList) {
//        ExcelUtils.writeExcel(response, errorCompanyList, ErrorCompanyInfo.class);
//    }
}